package com.example.sprintboot_demo1.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "sxt")
public class SxtProperties {

    private List<SxtItem> sxt;

    public List<SxtItem> getSxt() {
        return sxt;
    }

    public void setSxt(List<SxtItem> sxt) {
        this.sxt = sxt;
    }

    public static class SxtItem {
        private String address;
        private String mobile;
        private String email;

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }
    }
}